From: Basil L. Contovounesios Date: Thu, 7 May 2020 00:52:50 +0000 (+0100) Subject: ; Fix recent byte-compiler warnings in dnd.el X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~6645 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=281b9e42a49c72be48f881f94a5ec33537508118;p=emacs.git ; Fix recent byte-compiler warnings in dnd.el * lisp/dnd.el (dnd-handle-one-url): Don't require browse-url twice in the same function. Declare non-autoloaded browse-url-handlers to silence byte-compiler. --- diff --git a/lisp/dnd.el b/lisp/dnd.el index 2f7b16c56ed..b649e725f25 100644 --- a/lisp/dnd.el +++ b/lisp/dnd.el @@ -102,7 +102,7 @@ is what has been dropped. Returns ACTION." (throw 'done t))) nil) (catch 'done - (require 'browse-url) ;; browse-url-handlers is not autoloaded. + (defvar browse-url-handlers) ;; Not autoloaded. (dolist (bf (append ;; The alist choice of browse-url-browser-function ;; is deprecated since 28.1, so the (unless ...)